package pe.gob.onpe.facade.remote;

import java.util.List;
import javax.ejb.Remote;

import pe.gob.onpe.ejb.PerfilesOpciones;
import pe.gob.onpe.ejb.id.PerfilesOpcionesId;


/**
 * Remote interface for PerfilesOpcionesFacade.
 * 
 * @author MyEclipse Persistence Tools
 */
@Remote
public interface PerfilesOpcionesFacadeRemote {
	/**
	 * Perform an initial save of a previously unsaved PerfilesOpciones entity.
	 * All subsequent persist actions of this entity should use the #update()
	 * method.
	 * 
	 * @param entity
	 *            PerfilesOpciones entity to persist
	 * @throws RuntimeException
	 *             when the operation fails
	 */
	public void save(PerfilesOpciones entity);

	/**
	 * Delete a persistent PerfilesOpciones entity.
	 * 
	 * @param entity
	 *            PerfilesOpciones entity to delete
	 * @throws RuntimeException
	 *             when the operation fails
	 */
	public void delete(PerfilesOpciones entity);

	/**
	 * Persist a previously saved PerfilesOpciones entity and return it or a
	 * copy of it to the sender. A copy of the PerfilesOpciones entity parameter
	 * is returned when the JPA persistence mechanism has not previously been
	 * tracking the updated entity.
	 * 
	 * @param entity
	 *            PerfilesOpciones entity to update
	 * @returns PerfilesOpciones the persisted PerfilesOpciones entity instance,
	 *          may not be the same
	 * @throws RuntimeException
	 *             if the operation fails
	 */
	public PerfilesOpciones update(PerfilesOpciones entity);

	public PerfilesOpciones findById(PerfilesOpcionesId id);

	/**
	 * Find all PerfilesOpciones entities with a specific property value.
	 * 
	 * @param propertyName
	 *            the name of the PerfilesOpciones property to query
	 * @param value
	 *            the property value to match
	 * @param rowStartIdxAndCount
	 *            Optional int varargs. rowStartIdxAndCount[0] specifies the the
	 *            row index in the query result-set to begin collecting the
	 *            results. rowStartIdxAndCount[1] specifies the the maximum
	 *            count of results to return.
	 * @return List<PerfilesOpciones> found by query
	 */
	public List<PerfilesOpciones> findByProperty(String propertyName,
			Object value, int... rowStartIdxAndCount);

	/**
	 * Find all PerfilesOpciones entities.
	 * 
	 * @param rowStartIdxAndCount
	 *            Optional int varargs. rowStartIdxAndCount[0] specifies the the
	 *            row index in the query result-set to begin collecting the
	 *            results. rowStartIdxAndCount[1] specifies the the maximum
	 *            count of results to return.
	 * @return List<PerfilesOpciones> all PerfilesOpciones entities
	 */
	public List<PerfilesOpciones> findAll(int... rowStartIdxAndCount);
}